﻿namespace TriangleGames.TrainRes
{
    using System;
    using UnityEngine;

    [Serializable]
    public class FsmQuaternion : NamedVariable
    {
        [SerializeField]
        private Quaternion value;

        public FsmQuaternion()
        {
        }

        public FsmQuaternion(FsmQuaternion source) : base(source)
        {
            this.value = source.value;
        }

        public FsmQuaternion(string name) : base(name)
        {
        }

        public static implicit operator FsmQuaternion(Quaternion value)
        {
            FsmQuaternion quaternion2 = new FsmQuaternion(string.Empty);
            quaternion2.value = value;
            return quaternion2;
        }

        public override string ToString()
        {
            return this.value.ToString();
        }

        public Quaternion Value
        {
            get
            {
                return this.value;
            }
            set
            {
                this.value = value;
            }
        }
    }
}

